package com.mud.mudcommune.view.activity;



import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.mud.mudcommune.R;
import com.mud.mudcommune.view.fragment.MainFragment;
import com.readystatesoftware.systembartint.SystemBarTintManager;

public class MainActivity extends AppCompatActivity {
    private MainFragment mainFragment;
    private SystemBarTintManager tintManager;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        SystemBarTintManager tintManager = new SystemBarTintManager(this);
        tintManager.setStatusBarTintEnabled(true);
        tintManager.setStatusBarTintResource(R.color.black);//通知栏所需颜色
        mainFragment = MainFragment.getInstance();
        getSupportFragmentManager().beginTransaction().replace(R.id.main_frame, mainFragment).commit();
    }
}
